import request from '@/utils/request'

export function getVendorCodeByProductCode(query) {
  return request({
    url: '/mopBomCalProcess/getVendorCodeByProductCode',
    method: 'get',
    params: query
  })
}
export function diff(query) {
  return request({
    url: '/mopBomCalProcess/diff',
    method: 'get',
    params: query
  })
}
export function mopBomCalProcess(data) {
  return request({
    url: '/mopBomCalProcess',
    method: 'post',
    data
  })
}
export function getmopBomCalProcess(query) {
  return request({
    url: '/mopBomCalProcess/getVendorCodeProocessByProductCodeAndProcessNo',
    method: 'get',
    params: query
  })
}
export function delmopBomCalProcess(id) {
  return request({
    url: `/mopBomCalProcess/${id}`,
    method: 'delete'

  })
}
export function downLoadshenhe(data) {
  return request({
    url: `/mopBomCalProcess/excelVendorCodeProocessByProductCodeAndProcessNo`,
    method: 'get',
    responseType: 'arraybuffer',
    params: data
  })
}

